/**
 * 考场管理
 */

import request from "@/utils/request.js"

// 获取考场列表
export function getExaminationRoomDataApi(params) {
  return request({
    url: "/admin/room/list",
    method: 'POST',
    params
  })
}

// 添加考场
export function addExaminationRoomItemApi(params) {
  return request({
    url: "/admin/room/add",
    method: 'POST',
    params
  })
}

// 删除考场
export function removeExaminationRoomItemApi(params) {
  return request({
    url: "/admin/room/remove",
    method: 'POST',
    params
  })
}

// 修改考场
export function EditExaminationRoomItemApi(params) {
  return request({
    url: "/admin/room/edit",
    method: 'POST',
    params
  })
}

// 导出考场
export function ExportExaminationRoomApi() {
  return request({
    url: "/admin/room/export",
    method: 'POST',
    responseType: 'blob',
  })
}

// 导入考场
export function ImportExaminationRoomApi(data) {
  return request({ 
    ContentType: 'multipart/form-data',
    url: "/admin/room/importData",
    method: 'POST', 
    params:data
  })
}

// 教师
export function getTeacherDataListApi(params) {
  return request({
    url: "/edu/teacher/list",
    method: 'POST',
    params
  })
}

// // 导出考场
// export function getTeacherDataItemApi(params) {
//   return request({
//     url: "/edu/teacher/info",
//     method: 'POST',
//     params
//   })
// }
